package main

import (
	"encoding/json"
	"fmt"
)

type Movie struct {
	Title    string
	Year     int
	Color    bool
	Actors   []string
	duration int
}

func main() {
	movies := []Movie{
		{"Casablanca", 1942, false, []string{"Humphrey Bogart", "Ingrid Bergman"}, 1000},
		{"Cool Hand Luke", 1967, true, []string{"Paul Newman"}, 1258},
		{"Bullitt", 1968, true, []string{"Steve McQueen", "Jacqueline Bisset"}, 2389},
	}

	b, err := json.Marshal(movies)
	if err != nil {
		fmt.Printf("%v\n", err)
		return
	}
	fmt.Printf("%s\n", b)
}
